import request from '@/utils/request'

export const LineGroupTotalApi = {
  /**
   *  线路组分页列表
   * @returns
   */
  getPage: (data) => {
    return request({
      url: '/manage/intercity/lineGroupTotal/getPage',
      data,
      method: 'post'
    })
  },

  /**
   *  线路组列表
   * @returns
   */
  getList: () => {
    return request({
      url: '/manage/intercity/lineGroupTotal/getList',
      method: 'get'
    })
  },

  /**
   *  更新排序
   * @returns
   */
  updateSort: (data) => {
    return request({
      url: '/manage/intercity/lineGroupTotal/updateSort',
      data,
      method: 'post'
    })
  },

  /**
   *  更新状态
   * @returns
   */
  updateStatus: (data) => {
    return request({
      url: '/manage/intercity/lineGroupTotal/updateStatus',
      data,
      method: 'post'
    })
  },

  /**
   *  删除
   * @returns
   */
  delete: (lineGroupTotalId) => {
    return request({
      url: '/manage/intercity/lineGroupTotal/delete',
      params: { lineGroupTotalId },
      method: 'get'
    })
  },

  /**
   *  获取详细信息
   * @returns
   */
  getInfoById: (lineGroupTotalId) => {
    return request({
      url: '/manage/intercity/lineGroupTotal/getInfoById',
      params: { lineGroupTotalId },
      method: 'get'
    })
  },

  /**
   *  更新
   * @returns
   */
  update: (data) => {
    return request({
      url: '/manage/intercity/lineGroupTotal/update',
      data,
      method: 'post'
    })
  },

  /**
   *  插入
   * @returns
   */
  insert: (data) => {
    return request({
      url: '/manage/intercity/lineGroupTotal/insert',
      data,
      method: 'post'
    })
  }
}
